<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Finance extends Model
{
    protected $table = 'at_enterprise_info';
    protected $primaryKey = 'id';
    
    protected $fillable = [
        'id', 'company_name','address','company_type','create_by','company_state','del_flag',
    	'create_date','update_date','province','city','area','join_date','ratio','balance','bank_account','bank_name'	       	
    ];
    
    
    public function linkman()
    {
    	return $this->hasOne(LinkMan::class,'id');//,'at_enterprise_info_id');
    }
    
    public function sysuser(){
    	return $this->hasOne(SysUser::class,'id');
    }
    
}
